From 93fc0893742092c7cbca5026da717a6ef2ae60b5 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 4 Aug 2021 14:20:12 +0100 Subject: [PATCH] jail: cgroups-bpf: don't use sys/reg.h when building with glibc To access __WORDSIZE with glibc sys/cdefs.h is included now. Signed-off-by: Daniel Golle --- jail/cgroups-bpf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jail/cgroups-bpf.c b/jail/cgroups-bpf.c index b0079d9..c287e8b 100644 --- a/jail/cgroups-bpf.c +++ b/jail/cgroups-bpf.c @@ -19,7 +19,10 @@ #include #include +#include +#ifndef __GLIBC__ #include +#endif #include #include -- 2.30.2